package weixin.sdk.msg.parser;

import org.jdom.Element;
import org.jdom.JDOMException;
import weixin.sdk.msg.vo.recv.WxRecvMsg;
import weixin.sdk.msg.vo.recv.WxRecvVideoMsg;

/**
 * 接收视频消息类
 * @author xuxile 
 **/
public class WxRecvVideoMsgParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvVideoMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		String mediaId = getElementText(root, "MediaId");
		String thumbMediaId = getElementText(root, "ThumbMediaId");
		return new WxRecvVideoMsg(msg, mediaId, thumbMediaId);
	}

}
